package com.jxc.model.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 对账记录
 * 
 * @author Tino
 * 
 */
@Entity
@Table(name = "XSGL_AUDIT_RECORD")
public class AuditRecord extends IdEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5611335853904723872L;
	/**
	 * 对账人
	 * 
	 */
	private User user;
	/**
	 * 仓库
	 */
	private Repertory repertory;
	/**
	 * 对账开始日期
	 * 
	 */
	private Date beginAudit;
	/**
	 * 对账结束日期
	 * 
	 */
	private Date endAudit;
	/**
	 * 对账总金额
	 * 
	 */
	private Double total;
	/**
	 * 备注
	 * 
	 */
	private String remark;

	@ManyToOne
	@JoinColumn(name = "USER_ID")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Column(name = "BEGIN_AUDIT")
	public Date getBeginAudit() {
		return beginAudit;
	}

	public void setBeginAudit(Date beginAudit) {
		this.beginAudit = beginAudit;
	}

	@Column(name = "END_AUDIT")
	public Date getEndAudit() {
		return endAudit;
	}

	public void setEndAudit(Date endAudit) {
		this.endAudit = endAudit;
	}

	@Column(name = "TOTAL", length = 10, precision = 2)
	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	@Column(name = "REMARK", length = 254)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@ManyToOne
	@JoinColumn(name = "REPERTORY_ID")
	public Repertory getRepertory() {
		return repertory;
	}

	public void setRepertory(Repertory repertory) {
		this.repertory = repertory;
	}

}
